SftTree/OCX 7.0

SftPictureObject.SampleColor Property

Softel vdm, Inc.

Defines the picture object as a color sample.

Syntax       

Get

VB.NET

Clr = object.SampleColor  As UIntegerLanguage-specific information

VB

Clr = object.SampleColor  As OLE_COLOR

C#.NET

uintLanguage-specific information Clr = object.SampleColor;

VC++

OLE_COLOR Clr = object->SampleColor;
OLE_COLOR Clr = object->GetSampleColor();

C

HRESULT object->get_SampleColor(OLE_COLOR* Clr);

Delphi

Clr := object.SampleColor  : Cardinal;

Put

VB.NET

object.SampleColor = Clr  As UIntegerLanguage-specific information

VB

object.SampleColor = Clr  As OLE_COLOR

C#.NET

uintLanguage-specific information object.SampleColor = Clr;

VC++

OLE_COLOR object->SampleColor = Clr;
void object->PutSampleColor(OLE_COLOR Clr);

C

HRESULT object->put_SampleColor(OLE_COLOR Clr);

Delphi

object.SampleColor := Clr  : Cardinal;

object

A SftPictureObject object.

Clr

Defines the picture object as a color sample. For information about color properties, please visit the applicable section "Using SftTree/OCX with ...".

Comments

The SampleColor property defines the picture object as a color sample.

The SftPictureObject.Type property is set to sftTypeColorSample.

The SftPictureObject.Height and SftPictureObject.Width properties should be used to define the requested image size.

The SftPictureObject.FrameColor property can be used to define the border color of the color sample.

See Also  SftPictureObject Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com